package com.study.example.ex01;

/**
* @Name: Student
* @Description: 学生信息类
* @Author: 李超	lc_jack@foxmail.com
* @CreateDate: 2017-1-16 下午2:09:03 
* @Version: V1.0
 */
public class Student {
	
	private String name ; //学生姓名
	private int chineseScore ; //语文成绩
	private int mathScore ; //数学成绩
	private int englishScore ; //英语成绩
	
	public Student() {
	}
	
	public Student(String name, int chineseScore, int mathScore,
			int englishScore) {
		this.name = name;
		this.chineseScore = chineseScore;
		this.mathScore = mathScore;
		this.englishScore = englishScore;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getChineseScore() {
		return chineseScore;
	}
	public void setChineseScore(int chineseScore) {
		this.chineseScore = chineseScore;
	}
	public int getMathScore() {
		return mathScore;
	}
	public void setMathScore(int mathScore) {
		this.mathScore = mathScore;
	}
	public int getEnglishScore() {
		return englishScore;
	}
	public void setEnglishScore(int englishScore) {
		this.englishScore = englishScore;
	}
	
	public int getSum() {
		return this.chineseScore + this.mathScore + this.englishScore ;
	}

}
